﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.Framework.Enums;

namespace YouTravel.DomainModels
{
    /// <summary>
    /// 付款信息
    /// </summary>
    public class Payment : EntityBase
    {
        /// <summary>
        /// 签约专线
        /// </summary>
        public int SpecialId { get; set; }
        /// <summary>
        /// 专线
        /// </summary>
        public virtual Special Special { get; set; }
        /// <summary>
        /// 专线名称
        /// </summary>
        public string SpecialName { get; set; }
        /// <summary>
        /// 供应商ID
        /// </summary>
        public int SupplyId { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public virtual SellerSupplier SellerSupplier { get; set; }
        /// <summary>
        /// 付款委托信息
        /// </summary>
        public virtual List<PaymentEntrust> PaymentEntrust { get; set; }
        /// <summary>
        /// 收票信息
        /// </summary>
        public virtual List<CollectInvoice> CollectInvoice { get; set; }
        /// <summary>
        /// 付款类型
        /// </summary>
        public PaymentType Type { get; set; }
        /// <summary>
        /// 付款状态
        /// 1-待确认 2-已付款，3-废弃
        /// </summary>
        public PaymentStatus Status { get; set; }
        /// <summary>
        /// 收款人名称
        /// </summary>
        public string Payee { get; set; }
        /// <summary>
        /// 收款人银行名称
        /// </summary>
        public string CollectionBank { get; set; }
        /// <summary>
        /// 收款人银行账号
        /// </summary>
        public string BankNumber { get; set; }
        /// <summary>
        /// 银行流水号
        /// </summary>
        public string SerialNumber { get; set; }
        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 付款手续费
        /// </summary>
        public decimal CounterFee { get; set; }
        /// <summary>
        /// 打印预览次数
        /// </summary>
        public int PrintPreviewTimes { get; set; }
        /// <summary>
        /// 申请人ID
        /// </summary>
        public int ApplicantId { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public virtual User Applicant { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string ApplicantName { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime ApplicationTime { get; set; }
        /// <summary>
        /// 付款人ID
        /// </summary>
        public int? AuditId { get; set; }
        /// <summary>
        /// 付款人
        /// </summary>
        public virtual User Audit { get; set; }
        /// <summary>
        /// 付款人姓名
        /// </summary>
        public string AuditName { get; set; }
        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime? AuditTime { get; set; }
        /// <summary>
        /// 付款备注
        /// </summary>
        public string Remark { get; set; }


    }
}
